package springframework.bean;

import java.util.Date;

/**
 * @author Cedric
 * @date 2021/12/03 15:54
 * @description 丈夫
 */
public class Husband {

    private String wifeName;

    private Date marriageDate;

    private Wife wife;

    public Wife getWife() {
        return wife;
    }

    public void setWife(Wife wife) {
        this.wife = wife;
    }

    public String getWifeName() {
        return wifeName;
    }

    public void setWifeName(String wifeName) {
        this.wifeName = wifeName;
    }

    public String queryWife() {
        return "Husband.wife";
    }

    @Override
    public String toString() {
        return "Husband{" +
                "wifeName='" + wifeName + '\'' +
                ", marriageDate=" + marriageDate +
                '}';
    }
}
